package com.muyu.model.excel;

import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @ClassName: ExportExcelUser
 * @Author: Zirun.Xin
 * @Date: 2025/4/10 下午2:33
 * @Version: 1.0
 * @Description: excel导出用户对象
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ExportExcelUser implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 姓名
     */
    @Excel(name = "姓名", width = 10.0)
    private String name;

    /**
     * 年龄
     */
    @Excel(name = "年龄", width = 10.0)
    private Integer age;

    /**
     * 出生日期
     */
    @Excel(name = "出生日期", format = "yyyy-MM-dd", width = 20.0)
    private Date bornDate;

    /**
     * 入学时间
     */
    @Excel(name = "入学时间", databaseFormat = "yyyyMMdd", format = "yyyy-MM-dd", width = 20.0)
    private String enterSchoolTime;

    /**
     * 性别
     */
    @Excel(name = "性别", width = 10.0, replace = {"男生_男", "女生_女"}, addressList = true)
    private String sex;

    /**
     * 地址
     */
    @Excel(name = "地址", width = 30.0)
    private String address;

    /**
     * 头像
     */
    @Excel(name = "头像", type = 2, width = 30.0, height = 30.0, imageType = 1)
    private String image;

    /**
     * 用户描述
     */
    @Excel(name = "用户描述", width = 20.0)
    private String describes;
}
